//
//  RenWuTableViewCell.m
//  firstpoint
//
//  Created by 泽中 on 2017/6/28.
//  Copyright © 2017年 xzcysoft. All rights reserved.
//

#import "RenWuTableViewCell.h"

@implementation RenWuTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        _imgView=[[UIImageView alloc]initWithFrame:CGRectMake(6, 12.5 , 75, 75)];
        _imgView.backgroundColor=[UIColor purpleColor];
        _imgView.image=[UIImage imageNamed:@"timg.jpeg"];
        [self.contentView addSubview:_imgView];
        
        _titleLab=[[UILabel alloc]initWithFrame:CGRectMake(93, 14, width_screen-93-20, 17)];
        _titleLab.textColor=LRRGBColor(68, 68, 68);
        _titleLab.font=[UIFont systemFontOfSize:17];
        _titleLab.text=@"星期三我张开双臂";
        [self.contentView addSubview:_titleLab];
        
        _infoLab=[[UILabel alloc]initWithFrame:CGRectMake(93, 36, width_screen-93-20, 30)];
        _infoLab.numberOfLines=0;
        _infoLab.font=[UIFont systemFontOfSize:12];
        _infoLab.text=@"至今世间仍有隐约的耳语 跟随我俩的传说 飘去飘来的笔迹是深藏的激情你的心语";
        _infoLab.textColor=LRRGBColor(164, 164, 164);
        [self.contentView addSubview:_infoLab];
        
        _jindouLab=[[UILabel alloc]initWithFrame:CGRectMake(93, 71, width_screen-93, 17)];
        _jindouLab.textColor=[UIColor orangeColor];
        _jindouLab.font=[UIFont systemFontOfSize:17];
        _jindouLab.text=@"+182 金豆";
        [self.contentView addSubview:_jindouLab];
        
        _youxiajiaoLab=[[UILabel alloc]initWithFrame:CGRectMake(width_screen-120, 75, 100, 12)];
        _youxiajiaoLab.text=@"参与中";
        _youxiajiaoLab.textAlignment = NSTextAlignmentRight;

        _youxiajiaoLab.textColor=LRRGBColor(50, 141, 209);
        _youxiajiaoLab.font=[UIFont systemFontOfSize:12];
        [self.contentView addSubview:_youxiajiaoLab];
    }
    return self;
}
#pragma mark - 绘制Cell分割线
- (void)drawRect:(CGRect)rect {
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGContextSetFillColorWithColor(context, [UIColor clearColor].CGColor);
    CGContextFillRect(context, rect);
    
    
    //下分割线
    CGContextSetStrokeColorWithColor(context, [UIColor colorWithRed:198/255.0 green:198/255.0 blue:198/255.0 alpha:1].CGColor);
    CGContextStrokeRect(context, CGRectMake(0, rect.size.height, rect.size.width, 0));
}  
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
